// @ts-expect-error 不需要检测
import request from '@/utils/request'
// 根据字典类型查询字典数据信息
export function getDicts(dictType: string) {
  return request({
    url: '/web/dict/data/type/' + dictType,
    method: 'get',
  })
}

export function getPlat() {
  return request({
    url: '/web/information/plat/list',
    headers: {
      isToken: false,
    },
    method: 'get',
  })
}

export function getRegionById(id: string) {
  return request({
    url: '/common/region/getChildrenByParentId/' + id,
    method: 'get',
  })
}
export function getRegionByCode(code: string) {
  return request({
    url: '/common/region/code/' + code,
    method: 'get',
  })
}

export function getNodeTreeIndustry() {
  return request({
    url: '/system/industry/nodeList',
    method: 'get',
  })
}
